package info.techgeek.labs.patterns.factoryPattern;

public class ComputeName {

	private void computeName(String fullName) {
		Namer namer = new Namer();
		NameFactory nfactory = new NameFactory();
		
//		send the text to the factory and get a class back
		namer = nfactory.getNamer(fullName);
//		compute the first and last names
//		using the returned class
		System.out.println("First Name "+namer.getFirst());
		System.out.println("Last Name "+namer.getLast());
		
		}
	
	public static void main(String args[]){
		ComputeName name = new ComputeName();
		 name.computeName("aradd,ggf");
	}
}
